package com.xgimi.open.skill.datamanager.domain.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xgimi.open.skill.datamanager.domain.entity.WordStockDO;

import java.util.List;

/**
* @author coderzpw.zhang
* @description 针对表【word_stock(词库表)】的数据库操作Service
* @createDate 2023-02-07 19:23:48
*/
public interface WordStockService extends IService<WordStockDO> {

    List<WordStockDO> queryWordStockByNameAndVid(WordStockDO wordStockDO);

    Boolean saveWordStock(WordStockDO wordStockDO);

    List<WordStockDO> listBySkillVid(Long skillVid);

    WordStockDO queryById(Long id);

    List<WordStockDO> queryByNameByVidAndNoId(WordStockDO wordStockDO);

    Boolean deleteBySkillVid(Long skillVid);

    IPage<WordStockDO> pageQuery(IPage<WordStockDO> page, WordStockDO wordStockDO);

    boolean updateByIdAndVersion(WordStockDO wordStockDO);

    boolean removeBySkillVids(List<Long> skillVids);

    /**
     * 物理删除
     * @param skillVid
     * @return
     */
    Boolean physicalDeleteBySkillVid(Long skillVid);
}
